package com.ssm.mapper;

import com.ssm.hj.search.Search;
import com.ssm.pojo.Food;
import com.ssm.pojo.Mould;
import com.ssm.pojo.exercise;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MouldMapper {
    //阿杰 查询所有模板
    List<Mould> queryMouldAll(Search search) throws Exception;
    //阿杰 新增模板
    int saveMould(Mould mould) throws Exception;
    //阿杰 新增 膳食模板
    int saveMouldFood(@Param("id") int id, @Param("list") List<Food> foods);
    //阿杰 新增 运动模板
    int saveMouldExercise(@Param("id") int id, @Param("list") List<exercise> exercises);
}
